Skip to main content

Event - OnModToggle

Call a function when a mod is enabled or disabled.

Example#

local function OnModToggle(isEnable)    if isEnable then        print("OnEnable")    else        print("OnDisable")    endend
CL.ModManager.SaveLuaEnableFunc(OnModToggle) 

User Variables#

No user variables.